<#include "${ftl_skin}/common/header.ftl">

</head>
<body>

<div class="row ibox float-e-margins">
    <div class="ibox-content">
        <form id="formId"  class="form-horizontal" action="${path.servicePath }/func/tnodeedit.do" method="post">

            <input type="hidden" name="tree_type" id="tree_type" value="${treeType}" />
            <input type="hidden" name="id" id="id" value="${tNode.id}" />
            <input type="hidden" name="tree_code" id="tree_code" value="${tNode.tree_code}" />

            <input type="hidden" name="is_open" id="is_open" value="${tNode.is_open}" />


            <div class="form-group">
                <label class="col-xs-2 control-label">父结点</label>

                <div class="col-xs-10">
                ${pNode.node_name!}
                </div>
            </div>

            <div class="form-group">
                <label class="col-xs-2 control-label">功能名称</label>

                <div class="col-xs-10">
                    <input id="func_name" name="func_name" class="form-control required" type="text" value="${(funcVO.func_name)!}" maxlength="50" />
                </div>
            </div>

            <div class="form-group">
                <label class="col-xs-2 control-label">功能标识</label>

                <div class="col-xs-10">
                    <input id="func_code" name="func_code" class="form-control" type="text" value="${(funcVO.func_code)!}" maxlength="50" />
                </div>
            </div>
            
            <div class="form-group">
                <label class="col-xs-2 control-label">内容脚本</label>

                <div class="col-xs-10">
                    <input id="func_content" name="func_content" class="form-control" type="text" value="${(funcVO.func_content)!}" maxlength="200" />
                </div>
            </div>

			 <div class="form-group">
                <label class="col-xs-2 control-label">功能描述</label>

                <div class="col-xs-10">
                    <input id="func_note" name="func_note" class="form-control" type="text" value="${(funcVO.func_note)!}" maxlength="50" />
                </div>
            </div>

            <div class="hr-line-dashed"></div>
            <div class="form-group">
                <div class="col-xs-4 col-xs-offset-2">
                    <button class="btn btn-primary" type="button" onClick="javascript:HFFormSubmit('#formId', submitCallback, null);return false;">保存</button>
                    <button class="btn btn-info" type="button" onClick="javascript:closeDialog('');return false;">取消</button>
                </div>
            </div>
        </form>
    </div>
</div>



<#include "${ftl_skin}/common/js.ftl">


<script type="text/javascript">
    $(function(){
        //初始化表单验证
        initHFForm('#formId');
    });


    function submitCallback(msg){
        // alert(JSON.stringify(msg));
        if(msg.state == 0){
        	swal("编辑成功！", "", "success");
            closeDialog("reload");
        }
    }


</script>

<#include "${ftl_skin}/common/footer.ftl">
